home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94b.txt
/
000068_icon-group-sender _Mon Sep 26 14:33:11 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 26 Sep 1994 08:48:36 MST
To: icon-group-l@cs.arizona.edu
Date: Mon, 26 Sep 1994 14:33:11 GMT
From: plat@let.rug.nl (Bert Plat)
Message-Id: <1994Sep26.143311.10704@let.rug.nl>
Organization: Faculteit der Letteren, Rijksuniversiteit Groningen, NL
Sender: icon-group-request@cs.arizona.edu
Subject: Problem reading block of text
Errors-To: icon-group-errors@cs.arizona.edu
Even though I've managed to work around it, I would like to hear
*the* ICON solution to the following problem:
I have a file of text, containing separate entities, each of
which starts with a colon. I.e.:
:start of entity
lines and
lines and
more lines of text
:start of next entity
lines
lines
and more lines
Now, what is the most elegant and ICONesque way to obtain
these entities one by one? I've worked around it by concatenating
lines, suspend when match(":", line), then resuming with line :=
inline || "\n", but I wonder if there's a better way. What if,
for example, I want to build an array of strings?
best,
--
.
. . Bert Plat (bplat@rugrcx.rug.nl) . .
. . . . . . . . . . . . . . .